home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / python-support / python-rdflib / rdflib / QueryResult.py < prev    next >
Encoding:
Python Source  |  2007-04-04  |  374 b   |  13 lines

  1. class QueryResult(object):
  2.     """
  3.     A common class for representing query result in a variety of formats, namely:
  4.  
  5.     xml   : as an XML string using the XML result format of the query language
  6.     python: as Python objects
  7.     json  : as JSON
  8.     """
  9.     def __init__(self,pythonResult):
  10.         self.rt = pythonResult
  11.  
  12.     def serialize(self,format='xml'):
  13.         pass